/**
 * Copyright ©2016-2020 northkingbpo Corporation, All Rights Reserved
 * http://www.northkingbpo.net/
 */
package profile.hujia.log.analysis.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import profile.hujia.log.analysis.service.AnalysisService;

/**
 * class info
 *
 * @author hujia
 * @date 2018/12/18 17:19
 */
@Component
public class PollingTask {

    private final AnalysisService analysisService;

    public PollingTask(AnalysisService analysisService) {
        this.analysisService = analysisService;
    }

    @Scheduled(fixedDelay = 200000)
    public void Check() throws Exception{
        analysisService.analysis();
    }
}
